package com.exam.common.vo;

import java.util.Date;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;



public class ExamStuVO {
	
	private long examStuId;
	
	@NotEmpty(message="{stu.name.notNull}")
	private String examStuName;
	
	@NotEmpty(message="{stu.number.notNull}")
	@Size(min=6,max=10,message="{stu.number.size}")
	private String examStuNumber;
	
	@NotEmpty(message="{stu.pwd.notNull")
	private String examStuPassword;
	
	private String examStuSex;
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date examStuBrithday;
	
	@Length(max=13,min=7,message="{stu.tel.size}")
	private String examStuTel;
	
	private String examStuAddress;
	
	private Integer examStuDone;

	public long getExamStuId() {
		return examStuId;
	}

	public void setExamStuId(long examStuId) {
		this.examStuId = examStuId;
	}

	public String getExamStuName() {
		return examStuName;
	}

	public void setExamStuName(String examStuName) {
		this.examStuName = examStuName;
	}

	public String getExamStuNumber() {
		return examStuNumber;
	}

	public void setExamStuNumber(String examStuNumber) {
		this.examStuNumber = examStuNumber;
	}

	public String getExamStuPassword() {
		return examStuPassword;
	}

	public void setExamStuPassword(String examStuPassword) {
		this.examStuPassword = examStuPassword;
	}

	public String getExamStuSex() {
		return examStuSex;
	}

	public void setExamStuSex(String examStuSex) {
		this.examStuSex = examStuSex;
	}

	public Date getExamStuBrithday() {
		return examStuBrithday;
	}

	public void setExamStuBrithday(Date examStuBrithday) {
		this.examStuBrithday = examStuBrithday;
	}

	public String getExamStuTel() {
		return examStuTel;
	}

	public void setExamStuTel(String examStuTel) {
		this.examStuTel = examStuTel;
	}

	public String getExamStuAddress() {
		return examStuAddress;
	}

	public void setExamStuAddress(String examStuAddress) {
		this.examStuAddress = examStuAddress;
	}

	public Integer getExamStuDone() {
		return examStuDone;
	}

	public void setExamStuDone(Integer examStuDone) {
		this.examStuDone = examStuDone;
	}

	public ExamStuVO(long examStuId, String examStuName, String examStuNumber, String examStuPassword,
			String examStuSex, Date examStuBrithday, String examStuTel, String examStuAddress, Integer examStuDone) {
		super();
		this.examStuId = examStuId;
		this.examStuName = examStuName;
		this.examStuNumber = examStuNumber;
		this.examStuPassword = examStuPassword;
		this.examStuSex = examStuSex;
		this.examStuBrithday = examStuBrithday;
		this.examStuTel = examStuTel;
		this.examStuAddress = examStuAddress;
		this.examStuDone = examStuDone;
	}

	public ExamStuVO() {
		super();
	}
	
	
}
